import request from "@/utils/request";

export function login(path, param) {
  var formdata = new FormData();
  for (let key in param) {
    formdata.append(key, param[key]);
  }
  return request({
    url: "http://127.0.0.1:8888/api" + path,
    method: "post",
    data: formdata
  });
}

export function getuser(path, data) {
  return request({
    url: "http://127.0.0.1:8888/api" + path,
    method: "get",
    params: data
  });
}
